package com.yidu.boss.sys.domain;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author 
 */
public class Exchange implements Serializable {
    /**
     * 交易id
     */
    private String exchangeId;

    /**
     * 交易品种
     */
    private String exchangeName;

    /**
     * 印花税
     */
    private BigDecimal stampDuty;

    /**
     * 过户费
     */
    private BigDecimal transferRate;

    /**
     * 经手费
     */
    private BigDecimal handlingFeeRate;

    /**
     * 征管费
     */
    private BigDecimal collectionRate;

    /**
     * 描述
     */
    private String description;

    private String remark1;

    private Integer remark2;

    private BigDecimal remark3;

    private static final long serialVersionUID = 1L;

    public String getExchangeId() {
        return exchangeId;
    }

    public void setExchangeId(String exchangeId) {
        this.exchangeId = exchangeId;
    }

    public String getExchangeName() {
        return exchangeName;
    }

    public void setExchangeName(String exchangeName) {
        this.exchangeName = exchangeName;
    }

    public BigDecimal getStampDuty() {
        return stampDuty;
    }

    public void setStampDuty(BigDecimal stampDuty) {
        this.stampDuty = stampDuty;
    }

    public BigDecimal getTransferRate() {
        return transferRate;
    }

    public void setTransferRate(BigDecimal transferRate) {
        this.transferRate = transferRate;
    }

    public BigDecimal getHandlingFeeRate() {
        return handlingFeeRate;
    }

    public void setHandlingFeeRate(BigDecimal handlingFeeRate) {
        this.handlingFeeRate = handlingFeeRate;
    }

    public BigDecimal getCollectionRate() {
        return collectionRate;
    }

    public void setCollectionRate(BigDecimal collectionRate) {
        this.collectionRate = collectionRate;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getRemark1() {
        return remark1;
    }

    public void setRemark1(String remark1) {
        this.remark1 = remark1;
    }

    public Integer getRemark2() {
        return remark2;
    }

    public void setRemark2(Integer remark2) {
        this.remark2 = remark2;
    }

    public BigDecimal getRemark3() {
        return remark3;
    }

    public void setRemark3(BigDecimal remark3) {
        this.remark3 = remark3;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Exchange other = (Exchange) that;
        return (this.getExchangeId() == null ? other.getExchangeId() == null : this.getExchangeId().equals(other.getExchangeId()))
            && (this.getExchangeName() == null ? other.getExchangeName() == null : this.getExchangeName().equals(other.getExchangeName()))
            && (this.getStampDuty() == null ? other.getStampDuty() == null : this.getStampDuty().equals(other.getStampDuty()))
            && (this.getTransferRate() == null ? other.getTransferRate() == null : this.getTransferRate().equals(other.getTransferRate()))
            && (this.getHandlingFeeRate() == null ? other.getHandlingFeeRate() == null : this.getHandlingFeeRate().equals(other.getHandlingFeeRate()))
            && (this.getCollectionRate() == null ? other.getCollectionRate() == null : this.getCollectionRate().equals(other.getCollectionRate()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
            && (this.getRemark1() == null ? other.getRemark1() == null : this.getRemark1().equals(other.getRemark1()))
            && (this.getRemark2() == null ? other.getRemark2() == null : this.getRemark2().equals(other.getRemark2()))
            && (this.getRemark3() == null ? other.getRemark3() == null : this.getRemark3().equals(other.getRemark3()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getExchangeId() == null) ? 0 : getExchangeId().hashCode());
        result = prime * result + ((getExchangeName() == null) ? 0 : getExchangeName().hashCode());
        result = prime * result + ((getStampDuty() == null) ? 0 : getStampDuty().hashCode());
        result = prime * result + ((getTransferRate() == null) ? 0 : getTransferRate().hashCode());
        result = prime * result + ((getHandlingFeeRate() == null) ? 0 : getHandlingFeeRate().hashCode());
        result = prime * result + ((getCollectionRate() == null) ? 0 : getCollectionRate().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getRemark1() == null) ? 0 : getRemark1().hashCode());
        result = prime * result + ((getRemark2() == null) ? 0 : getRemark2().hashCode());
        result = prime * result + ((getRemark3() == null) ? 0 : getRemark3().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", exchangeId=").append(exchangeId);
        sb.append(", exchangeName=").append(exchangeName);
        sb.append(", stampDuty=").append(stampDuty);
        sb.append(", transferRate=").append(transferRate);
        sb.append(", handlingFeeRate=").append(handlingFeeRate);
        sb.append(", collectionRate=").append(collectionRate);
        sb.append(", description=").append(description);
        sb.append(", remark1=").append(remark1);
        sb.append(", remark2=").append(remark2);
        sb.append(", remark3=").append(remark3);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}